<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form:form modelAttribute="efwSourceEntity" name="ec">
<form:hidden path="id"/>

<div class="widget" style="border-radius: 2px 2px 2px 2px;border:1px solid #d5d5d5;border-top:none; margin-top:10px;margin-bottom:10px;">
<div class="head"><h5 class="iDropper"><c:if test="${efwSourceEntity.id == null}">新增实体权限</c:if><c:if test="${efwSourceEntity.id != null}">修改实体权限</c:if></h5>
</div>
<table border="0" width="98%" cellpadding="5" cellspacing="5" >
	<tr>
		<td align="right" width="20%"><span class="redmark"></span>实体权限名称：</td>
		<td align="left" width="80%"><form:input path="entityName" size="30"  /><form:errors path="entityName" cssClass="errors"/></td>
	</tr>
	<tr>
		<td align="right" width="20%"><span class="redmark"></span>实体类：</td>
		<td align="left" width="80%"><form:input path="entityClass" size="30"  /><form:errors path="entityClass" cssClass="errors"/></td>
	</tr>
	<tr>
		<td align="right" width="20%"><span class="redmark"></span>资源类型：</td>
		<td align="left" width="80%">
			  <select name="sourceType">
			  		<option value="">--请选择--</option>
       				<option value="1" <c:if test="${efwSourceEntity.sourceType eq '1'}">selected="selected"</c:if>>实体类型</option>
      				<option value="2" <c:if test="${efwSourceEntity.sourceType eq '2'}">selected="selected" </c:if>>字典数据类型</option>
      		</select><form:errors path="sourceType" cssClass="errors"/>
		</td>
	</tr>



	<tr>
		<td align="right" width="20%"><span class="redmark"></span>实体字段：</td>
		<td align="left" width="80%"><form:input path="entityField" size="30"  /><form:errors path="entityField" cssClass="errors"/></td>
	</tr>

	<tr>
		<td align="right" width="20%"><span class="redmark"></span>输出数据名称：</td>
		<td align="left" width="80%"><form:input path="outputName" size="30"  /><form:errors path="outputName" cssClass="errors"/></td>
	</tr>

	<tr>
		<td align="right" width="20%"><span class="redmark"></span>数据字段：</td>
		<td align="left" width="80%"><form:input path="outputField" size="30"  /><form:errors path="outputField" cssClass="errors"/></td>
	</tr>


</table>
</div>
</form:form>
